﻿@model dynamic
@{
    var types = (List<CmsContentType>) @Model.Types;
    var items = (IEnumerable<SelectListItem>)@Model.Items;
    var defaultType = @Model.DefaultId;
    ResFile = "cms_Common";
}
<script type="text/javascript">
    
</script>
<div class="b-form g-clear">
    <div class="float-left b-form_bordered b-form_theme_green js-types">
        <div class="b-form__head">@_("Available content types")</div>
        <div class="b-form__body">
            <div class="b-dual-list__snippets">
                @Html.DropDownList("Types", new SelectList(types, "Id", "ContentTypeName", defaultType), new {size = 10})
            </div>
        </div>
    </div>

    <div class="float-right b-form_bordered b-form_theme_green js-items">
        <div class="b-form__head">@_("Available items")</div>
        <div class="b-form__body">
            <div class="b-dual-list__snippets">
                @Html.ListBox("Items", items, new {size = 10})
            </div>
        </div>
    </div>

    <div class="clearall"></div>

    <br />
    <ol class="b-form__rows ul-reset g-clear">
        <li class="b-form__row text-right g-clear">
            <input type="button" class="b-button js-select-snippet" value="@_("OK")"/>
        </li>
    </ol>
</div>